home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
business
/
aesti967.zip
/
-EXIST.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-07-07
|
5KB
|
110 lines
echo off
cls
if (%1)==() goto Help
if exist %1\nul goto DriveOK
echo.
echo ┌──────────────────────────────────────────────────────────────────────┐
echo │ │
echo │ Error - invalid path was used │
echo │ │
echo └──────────────────────────────────────────────────────────────────────┘
echo.
echo Use -EXIST Destination where Destination is the path where the old
echo version of AEsti is located
echo.
echo If the old version is located in C:\ESTI then use -EXIST C:\ESTI
echo.
echo Your selected path was %1
goto end
:DriveOK
rem the paths OK so check if old version is here
if exist %1\AESTI.EXE goto PathOK
cls
echo.
echo ┌──────────────────────────────────────────────────────────────────────┐
echo │ │
echo │ Error - unable to find old version of AEsti in this directory │
echo │ │
echo └──────────────────────────────────────────────────────────────────────┘
echo.
echo Use -EXIST Destination where Destination is the path where the old
echo version of AEsti is located
echo.
echo If the old version is located in C:\ESTI then use -EXIST C:\ESTI
echo.
echo Your selected path was %1
goto end
:PathOK
rem found a version, make sure user has backed up all old files
cls
echo.
echo.
echo ┌───────────────────────────────────────────────────────────────────────┐
echo │ *** Warning *** *** Warning *** *** Warning *** │
echo │ │
echo │ │
echo │ You MUST make a backup copy of the OLD version first before upgrading │
echo │ to the new version, files are erased during the upgrade and can not │
echo │ be recovered ! │
echo │ │
echo └───────────────────────────────────────────────────────────────────────┘
echo.
echo Keep the CTRL key pressed down and then press C to cancel the upgrade
echo or press any other key to continue
pause>nul
cls
echo.
echo ┌───────────────────────────────────────────────────────────────────────┐
echo │ │
echo │ Upgrading the old version - please wait │
echo │ │
echo └───────────────────────────────────────────────────────────────────────┘
echo.
copy *.exe %1
copy *.doc %1
copy *.hlp %1
echo ┌───────────────────────────────────────────────────────────────────────┐
echo │ │
echo │ Software has been upgraded successfully ! │
echo │ │
echo └───────────────────────────────────────────────────────────────────────┘
echo.
goto End
:Help
echo.
echo ┌──────────────────────────────────────────────────────────────────────────┐
echo │ Installs and Upgrades an EXISTING version of AEsti │
echo └──────────────────────────────────────────────────────────────────────────┘
echo.
echo Use a command line of -EXIST Destination where Destination is the drive
echo and directory containing the old version of AEsti
echo.
echo If the old version is located in C:\ESTI then use -EXIST C:\ESTI
echo.
echo Do not use a trailing slash such as C:\ESTI\. This batch file must be
echo run from where the new version of the software is located
echo.
echo Warning !
echo ─────────
echo Before upgrading make a backup copy of the OLD version, old files are
echo erased during the upgrade and can not be recovered !
echo.
echo Manual Installation
echo ───────────────────
echo If you are familiar with DOS then just copy all new files with .EXE,
echo .HLP and .DOC file extensions to where the old version is located
:End
echo.